/**
 * 输入输出模板
 */
import java.util.*;
import java.io.*;
public class Main{
    /**
     * 输出函数
     * @param out
     */
    public static PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
    public static Read in = new Read();

    public static void main(String[] args)throws IOException {
         int a = in.nextInt();
         out.print(a + " ");
         out.println(a);
         out.close();
    }

}
class Read{
    //字符串分割
    StringTokenizer st = new StringTokenizer("");
    //将io文件区的读取内容加载到内存缓冲区中
    BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));

    String next() throws IOException{
        //如果当前行已经读取完就进入，读取下一行
        while(!st.hasMoreTokens()){
            st = new StringTokenizer(bf.readLine());
        }
        return st.nextToken();
    }

    String nextLine() throws IOException{
        return bf.readLine();
    }

   Integer nextInt() throws IOException{
        return Integer.parseInt(next());
    }
    Long nextLong() throws IOException{
        return Long.parseLong(next());
    }
    Double nextDouble() throws IOException{
        return Double.parseDouble(next());
    }

}